package com.hejia.config;

import org.springframework.beans.factory.annotation.Value;

import com.baofoo.config.BaofooConfig;

/**
 * 宝付生产环境配置
 * 
 * @author hyr
 *
 */
public class DevelopmentBaofooConfig implements BaofooConfig {

	@Value("#{settings['base.domain']}")
	private String baseDomain;

	@Override
	public String getWapPayUrl() {
		return "https://gw.baofoo.com/apipay/wap";
	}
	
	@Override
	public String getPCPayUrl() {
		return "https://gw.baofoo.com/apipay/pc";
	}

	@Override
	public String getMemberId() {
		return "28654";
	}

	@Override
	public String getTerminalId() {
		return "28653";
	}

	@Override
	public String getPageUrl() {
		return this.baseDomain + "/baofoo/pagenotify";
	}

	@Override
	public String getReturnUrl() {
		return this.baseDomain + "/baofoo/servernotify";
	}

	@Override
	public String getBackUrl() {
		return this.baseDomain + "/baofoo/pageerror";
	}

	@Override
	public String getPrivateKeyPath() {
		return "/baofoo/production/kjc_pri.pfx";
	}

	@Override
	public String getPrivateKeyPassword() {
		return "714499_28653";
	}

	@Override
	public String getPublicKeyPath() {
		return "/baofoo/production/kjc_pub.cer";
	}
	
	@Override
	public String getBaofooPublicKeyPath() {
		return "/baofoo/production/bfkey_714499@@28653.cer";
	}
	
}
